﻿using System.Data.Entity.ModelConfiguration;
using yiCommerce.Core.Domain.Products;

namespace yiCommerce.Data.Mapping.Products
{
    public class ProductAttributeMapping: EntityTypeConfiguration<ProductAttribute>
    {
        public ProductAttributeMapping()
        {
            this.ToTable("ProductAttribute");
            this.HasKey(pa => pa.Id);
            this.Property(pa => pa.Name).IsRequired();
            this.Property(pa => pa.Description);
        }
    }
}